from cog.torque import Graph

g = Graph(graph_name="意图", cog_path_prefix="./data", cog_home="cogdb")

g.put("猫", "吃", "老鼠")
g.put("猫", "吃", "鱼")
g.put("狗", "吃", "骨头")
g.put("兔子", "吃", "青草")
g.put("兔子", "吃", "胡萝卜")

# vertices = g.scan(10)
# print(vertices)
ce = g.v("猫").out("吃").all()
print(ce)

